package com.qpx.jxcmessage.direct;


import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues="qpx")
@Slf4j
public class Consumer {


    @RabbitHandler
    public void getMessage(String message){
            log.info("qpxQueuesDirect:"+message);
//            String a= null;
//            a.toString();
            //省略1000行业务逻辑
    }
}
